﻿#include "mycombobox.h"

#include <QMouseEvent>

MyComBobox::MyComBobox(QWidget *parent):QComboBox(parent)
{

}

void MyComBobox::mousePressEvent(QMouseEvent *e)
{
    //发出一个信号
    if(e->button() == Qt::LeftButton){
        emit refresh();
    }
    QComboBox::mousePressEvent(e);//重写之后将鼠标点击事件还给父类
}
